<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">
	<head>
		<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
		{if isset($meta_description) AND $meta_description}
		<meta name="description" content="{$meta_description|escape:htmlall:'UTF-8'}" />
		{/if}
		{if isset($meta_keywords) AND $meta_keywords}
		<meta name="keywords" content="{$meta_keywords|escape:htmlall:'UTF-8'}" />
		{/if}
		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
		<meta name="generator" content="Lucas CHERIFI" />
		<meta name="author" content="Lucas CHERIFI" />
		<meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
		<link rel="icon" type="image/vnd.microsoft.icon" href="{$img_uri}/favicon.ico" />
		<link rel="shortcut icon" type="image/x-icon" href="{$img_uri}/favicon.ico" />
		<link rel="stylesheet" type="text/css" href="{$css_uri}/core.css" media="screen" title="Default"/>
		<link rel="stylesheet" type="text/css" href="{$jquery_uri}/jqueryFileTree/jqueryFileTree.css"  media="screen" title="Default" />
		<link rel="stylesheet" type="text/css" href="{$jquery_uri}/thickbox-3.1/thickbox.css"  media="screen" title="Default" />
		<link rel="stylesheet" type="text/css" href="{$jquery_uri}/jquery-autocomplete-1.0.2/jquery.autocomplete.css" title="Default" />
		<link rel="stylesheet" href="{$jquery_uri}/jquery.ui-1.6rc2/themes/flora/flora.all.css" type="text/css" media="screen" title="Default" />
		<script type="text/javascript" src="{$jquery_uri}/jquery-1.2.6.js"></script>
		<script type="text/javascript">
		var listingParameters = new Array();
			listingParameters['{$listingObj->listing_name}'] = new Array();
			listingParameters['{$listingObj->listing_name}']['request_name'] = '{$listingObj->listing_name}';
			listingParameters['{$listingObj->listing_name}']['subdir'] = '{$listingObj->subdir}';
			listingParameters['{$listingObj->listing_name}']['page'] = '{$listingObj->currentPage}';
			listingParameters['{$listingObj->listing_name}']['item_per_page'] = '{$listingObj->itemsPerPage}';
			listingParameters['{$listingObj->listing_name}']['listing_type'] = '{$listingObj->type}';
			listingParameters['{$listingObj->listing_name}']['sort_by'] = '{$listingObj->sortByColumn}';
			listingParameters['{$listingObj->listing_name}']['sort_by_direction'] = '{$listingObj->sortByDirection}';
			listingParameters['{$listingObj->listing_name}']['filter'] = '{$listingObj->filterColumn}';
			listingParameters['{$listingObj->listing_name}']['filter_value'] = '{$listingObj->filterValue}';
			listingParameters['{$listingObj->listing_name}']['numberOfPagesNumbersToShow'] = '{$listingObj->numberOfPagesNumbersToShow}';
			listingParameters['{$listingObj->listing_name}']['filter_value_min'] = new Array();
			listingParameters['{$listingObj->listing_name}']['filter_value_max'] = new Array();
		</script>
	</head>
	<body>
		<div id="player_block">
			<div id="ajax_loading"><img src="{$img_uri}/loading.gif" alt="loading..."/></div>
			<object id="mp3player" type="application/x-shockwave-flash" data="{$core_uri}/lib/mp3player-1.12-maxi-0.6.0/player_mp3_maxi.swf" width="500" height="30">
				<param name="wmode" value="transparent" />
				<param name="movie" value="{$core_uri}/lib/mp3player-1.12-maxi-0.6.0/player_mp3_maxi.swf" />
				<param name="FlashVars" value="bgcolor1=ffffff&amp;bgcolor2=cccccc&amp;buttoncolor=999999&amp;buttonovercolor=0&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;sliderovercolor=666666&amp;textcolor=0&amp;showvolume=1&amp;showinfo=1&amp;width=500&amp;height=30&amp;sliderwidth=20&amp;sliderheight=16&amp;buttonwidth=30&amp;volumewidth=50;volumeheight=10" />
				<p>Le fichier SWF (Flash) n'a pas été chargé. Soit il a été supprimé, soit vous devez installer Flash sur votre navigateur.</p>
			</object> <a href="#" onclick="return !$('#graph').attr('src', getGraphURI());">voir le graph</a>
		</div>
		<div id="player_spacer">&nbsp;</div>

		
		<ul id="steps">
			{include file='ajax_steps.tpl'}
		</ul>
		
		<p>
			<img id="graph" class="clear" src="" alt="" />
		</p>
		
		{$listing}
		
		<script type="text/javascript" src="{$jquery_uri}/jquery.ui-1.6rc2/ui/ui.core.js"></script>
		<script type="text/javascript" src="{$jquery_uri}/typewatch-2.0/typewatch.js"></script>
		<script type="text/javascript" src="{$jquery_uri}/jquery.ui-1.6rc2/ui/ui.slider.js"></script>
		<script type="text/javascript" src="{$jquery_uri}/thickbox-3.1/thickbox.js"></script>
		<script type="text/javascript" src="{$jquery_uri}/jquery-autocomplete-1.0.2/jquery.autocomplete.js"></script>
		<script type="text/javascript" src="{$jquery_uri}/jqueryFileTree/jqueryFileTree.js" ></script>
		<script type="text/javascript" src="{$core_uri}/lib/kasifi-listing/listing.js"></script>
		<script type="text/javascript" src="{$js_uri}/useful.js"></script>
		<script type="text/javascript" src="{$js_uri}/global.js"></script>
		<script type="text/javascript">
		var core_uri = '{$core_uri}';
		var content_uri = '{$content_uri}';
		
		var downloadedCount = {$steps.downloaded.tracks|@count};
		var selectedCount = {$steps.selected.tracks|@count};
		var retaggedCount = {$steps.retagged.tracks|@count};
		var undoubledCount = {$steps.undoubled.tracks|@count};
		var normalizedCount = {$steps.normalized.tracks|@count};
		var bpm_addedCount = {$steps.bpm_added.tracks|@count};
		var lyrics_addedCount = {$steps.lyrics_added.tracks|@count};
		var image_addedCount = {$steps.image_added.tracks|@count};
		var cleanedCount = {$steps.cleaned.tracks|@count};
		
		var biggestDir = Math.max(downloadedCount, Math.max(selectedCount, Math.max(retaggedCount, Math.max(undoubledCount, Math.max(normalizedCount, Math.max(bpm_addedCount, Math.max(lyrics_addedCount, Math.max(image_addedCount, cleanedCount))))))));
		
		var rootDir = '{$currentStep.dir}/';
		var currentStepName = '{$currentStepName}';

		{literal}
			$(document).ready( function() {
				//"loading image" management
				$('div#ajax_loading img').ajaxStart(function(){$(this).show();}).ajaxStop(function(){$(this).hide();}).hide();
				multiple_action_to_confirm = new Array('delete');
			});
		{/literal}
		</script>
	</body>
</html>
